@extends('home.user.layout')
@section('content')
		
		
      <div class="f-r main">
      	<h2 class="main-title">
      		<ul class="main-title-tabs">
      			<li class="js-tab-setting active">个人设置</li>
      			<li class="js-tab-binding">账号绑定</li>
      		</ul>
      	</h2>
      	<div class="account-panels main-container">
      		<div class="account-panel js-panel-setting active">
      			<form class="js-account-form" method="POST" action="{{ url('/home/user_set/update') }}" enctype="multipart/form-data">
		{{ csrf_field() }}
      				<div class="user-avatar-content">
      					<div class="avatar-option-content">
      						<div class="avatar-loading js-avatar-loading">
      							<div class="avatar-loading-animation">
      							<i class="iconfont icon-loading"></i>
      							</div>
      						</div>
      					<div class="user-avatar js-user-avatar">
      						<img src="{{ url('/uploads') }}/{{ session('master') -> img_u }}">
      					</div>
      					</div>
	      				<div class="choose-image">
	      					<i class="iconfont"></i>
	              				选择图片
	              			<input id="avatar-fileupload" type="file" class="sr-only select-image-btn js-input-image" name="img_u">	              			
	              		</div>
              			<p class="photo-tip-txt">选择你喜欢的照片：格式为 JPG, JPEG, GIF 或 PNG。大小不超过 5MB。</p>
              		</div>
							
              		<div class="account-info js-user-info">
						<div style="margin-bottom: 10px;color:red; text-align:center"><p>
		              		@if(session('info'))
								{{ session('info') }}
							@endif
							@if (count($errors) > 0)					            
					                 @foreach ($errors->all() as $error)
					                 {{ $error }}
					                 @endforeach					             
					        @endif  
		              	</p></div>
              			<div class="account-info-item">
              				<label><i class="iconfont "></i>邮箱：</label>
              				<span class="binding-mail">{{  session('master') -> email }}
              					<a class="m-l-20 js-modify-password" href="javascript: void(0);">修改密码</a>
              				</span>
              			</div>
              			<div class="account-info-item">
              				<label><i class="iconfont "></i>用户名：</label>
              				<input type="text" name="username" placeholder="用户名" value="{{  session('master') -> username }}">
              			</div>
              			<div class="account-info-item">
              				<label><i class="iconfont "></i>姓名：</label>
              				<input type="text" name="realname" placeholder="真实姓名" value="{{  session('master') -> realname }}">
              			</div>
              			<div class="account-info-item">
              				<label><i class="iconfont "></i>电话号码：</label>
              				<input type="text" name="phone_num" placeholder="电话号码" value="{{  session('master') -> phone_num }}">
              			</div>
              			<div class="account-info-item">
              				<label><i class="iconfont "></i>公司：</label>
              				<input type="text" name="company" placeholder="公司" value="{{  session('master') -> company }}">
              			</div>
              			<div class="account-info-item">
              				<label><i class="iconfont "></i>职位：</label>
              				<input type="text" name="position" placeholder="职位/头衔" value="{{  session('master') -> position }}">
              			</div>
              			<button type="submit" class="btn-uc btn-save-info" data-action="register">保存</button>
              		</div>
              	</form>              	
              </div>
              <div class="account-panel js-panel-binding">
              	<ul class="binding-accounts">
              		<li class="binding-intro">绑定账号以后，可直接用第三方账号登录。</li>
              		<li class="binding-sina"><i class="ifanrx ifanrx-weibo"></i>
            	新浪微博
            	
              <a class="btn-binding-sina f-r" href="#">绑定</a></li><li class="binding-wechat"><i class="ifanrx ifanrx-wechat"></i>
            
              微信
              <button class="btn-binding-wechat f-r js-weixin-bind">绑定</button></li><!-- 弹窗：微信二维码 --><div class="weixin-code-contianer f-r"><div class="weixin-code-content js-qrcode-container" id="qrcode-sso-weixin-bind"></div></div></ul><!-- 弹窗：取消绑定，微信微博通用 --><div class="unbind-proper-window js-modal-unbind"><div class="unbind-title">你确定要取消绑定吗？</div><div class="unbind-btn-container"><div class="unbind-btn sure f-l js-unbind-sure">确定</div><div class="unbind-btn unsure f-r js-unbind-unsure">取消</div></div></div></div></div><!-- 弹窗：选取头像图片并剪切 --><div class="proper-window-container proper-set-avatar js-modal-set-avatar"><div class="proper-window-content"><i class="ifanrx ifanrx-guanbi2 js-close-btn f-r"></i><form class="proper-form js-avater-form" id="select-avater-form"><input type="hidden" name="csrfmiddlewaretoken" value="PE7kt4xmhgmRoqnywt5qIalxapPDp4Vf"><div class="clip-avatar-container js-clip-avatar-content"><img class="js-avatar-image" src=""></div><div class="choose-image"><i class="iconfont icon-xiangji photo-icon"></i>
            重新选择
            <input type="file" class="sr-only select-image-btn js-input-image" name="file" accept="image/*"></div><p class="photo-tip-txt">格式为 JPG, JPEG, GIF 或 PNG。大小不超过 5MB。</p><div type="button" class="btn-uc js-account-avatar" data-method="getCroppedCanvas" data-token="PE7kt4xmhgmRoqnywt5qIalxapPDp4Vf">保存</div></form></div></div></div>

            
@endsection



  